import {
	myRequest
} from '@/utils/request.js'
/**
 * 分页查询
 */
export const getPage = (obj) => {
	return myRequest({
		url: '/mallapi/goodsappraise/page',
		method: 'get',
		data: obj,
		showLoading: true
	});
}
/**
 分页查询用户评价
 */
export const getUserPage = (obj) => {
	return myRequest({
		url: '/mallapi/goodsappraise/user-page',
		method: 'get',
		data: obj,
		showLoading: true
	});
}
/**
 * 发表评论
 */
export const addObj = (data) => {
	return myRequest({
		url: '/mallapi/goodsappraise',
		method: 'post',
		data,
		showLoading: true
	});
}